﻿using ShoppingEntity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using static ShoppingEntity.EvaluateInfo;

namespace IShoppingBll
{
    public interface IEvaluateInfoBll : IBaseBll<EvaluateInfo>
    {

        /// <summary>
        /// 添加评论
        /// </summary>
        /// <param name="orderId"></param>
        /// <param name="content"></param>
        /// <returns></returns>
        bool AddEvaluate(string orderId, string content, EvaluateStateEnum state);

        /// <summary>
        /// 分页展示、模糊查询
        /// </summary>
        /// <param name="page"></param>
        /// <param name="limit"></param>
        /// <param name="count"></param>
        /// <param name="commodityName"></param>
        /// <returns></returns>
        object GetEvaluateInfoList(int page, int limit, out int count, string commodityName);
    }
}
